function v = vertical_d(i)
    v = i(2:end, :) - i(1:end-1, :);
end